#!/usr/bin/expect -f
  set host 10.64.57.21
  set user root
  set password  hoopchina
  set timeout 30

  spawn ssh $user@$host
  expect {
    "password:"
    {send "$password\r"}
  }
  interact
